package com.ruoyi.commerce.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.commerce.mapper.CommerceInfoUserMapper;
import com.ruoyi.commerce.domain.CommerceInfoUser;
import com.ruoyi.commerce.service.ICommerceInfoUserService;

/**
 * 帮养之家和负责人联Service业务层处理
 * 
 * @author zhezhi
 * @date 2022-10-02
 */
@Service
public class CommerceInfoUserServiceImpl implements ICommerceInfoUserService 
{
    @Autowired
    private CommerceInfoUserMapper commerceInfoUserMapper;

    /**
     * 查询帮养之家和负责人联
     * 
     * @param infoId 帮养之家和负责人联主键
     * @return 帮养之家和负责人联
     */
    @Override
    public CommerceInfoUser selectCommerceInfoUserByInfoId(Long infoId)
    {
        return commerceInfoUserMapper.selectCommerceInfoUserByInfoId(infoId);
    }

    /**
     * 查询帮养之家和负责人联列表
     * 
     * @param commerceInfoUser 帮养之家和负责人联
     * @return 帮养之家和负责人联
     */
    @Override
    public List<CommerceInfoUser> selectCommerceInfoUserList(CommerceInfoUser commerceInfoUser)
    {
        return commerceInfoUserMapper.selectCommerceInfoUserList(commerceInfoUser);
    }

    /**
     * 新增帮养之家和负责人联
     * 
     * @param commerceInfoUser 帮养之家和负责人联
     * @return 结果
     */
    @Override
    public int insertCommerceInfoUser(CommerceInfoUser commerceInfoUser)
    {
        return commerceInfoUserMapper.insertCommerceInfoUser(commerceInfoUser);
    }

    /**
     * 修改帮养之家和负责人联
     * 
     * @param commerceInfoUser 帮养之家和负责人联
     * @return 结果
     */
    @Override
    public int updateCommerceInfoUser(CommerceInfoUser commerceInfoUser)
    {
        return commerceInfoUserMapper.updateCommerceInfoUser(commerceInfoUser);
    }

    /**
     * 批量删除帮养之家和负责人联
     * 
     * @param infoIds 需要删除的帮养之家和负责人联主键
     * @return 结果
     */
    @Override
    public int deleteCommerceInfoUserByInfoIds(Long[] infoIds)
    {
        return commerceInfoUserMapper.deleteCommerceInfoUserByInfoIds(infoIds);
    }

    /**
     * 删除帮养之家和负责人联信息
     * 
     * @param infoId 帮养之家和负责人联主键
     * @return 结果
     */
    @Override
    public int deleteCommerceInfoUserByInfoId(Long infoId)
    {
        return commerceInfoUserMapper.deleteCommerceInfoUserByInfoId(infoId);
    }
}
